package com.jiantong.work.enums;

/**
 * Created by niufei on 2017/3/20.
 *
 */
public enum DocumentsType {
    QUARANTINE_ORIGIN_AREA(1,"产地检疫"),
    ADMISSION_INSPECTION(2,"入场监督检查"),
    SLAUGHTER_QUARANTINE(3,"屠宰检疫"),
    HARMLESS(4,"无害化"),
    ANTEMORTEM_INSPECTION(5,"屠宰检疫-宰前检查"),
    SYNCHRONOUS_INSPECTION(6,"屠宰检疫-同步检疫"),
    QUARANTINE_CENTER_HARMLESS(7,"防疫中心-无害化"),
    DISINFECT_REPORT_MANAGER(8,"防疫中心-消毒记录"),
    DIAGNOSIS_REPORT_MANAGER(9,"防疫中心-诊疗记录"),
    IMMUNIZATION_DETECTION_MANAGER(10,"防疫中心-免疫检测"),
    IMMUNIZATION_RECORDMANAGER(11,"防疫中心_免疫记录表"),
    POLLUTION_CONTROL(12,"治污中心信息表"),
    PRODUCTION_REPORT(13,"生产中心-生产记录信息表"),
    FEED_REPORT(14,"生产中心-饲料记录信息表"),
    MATERIAL_PURCHASE_RECORD_MANAGER(15,"采购中心-原料购置"),
    VACCINE_PURCHASE_RECORD_MANAGER(16,"采购中心-疫苗购置"),
    DRUG_PURCHASE_RECORD_MANAGER(17,"采购中心-药物购置"),
    SEED_PURCHASE_RECORD_MANAGER(18,"采购中心-引种记录"),
    OTHER_PURCHASE_RECORD(19,"采购中心-其他购买"),
    RETAIL_BREED_RECORD(20,"散养户的养殖档案"),
    BREED_TRANSFER_RECORD(21,"转群记录"),
    RETAIL_IMMUNIZATION_RECORD(22,"散养户的免疫记录"),
    SUPERVISION_RECORD(100,"督查轨迹");


    private final Integer value;

    private final String description;

    DocumentsType(int value, String description) {
        this.value = value;
        this.description = description;
    }
    public static DocumentsType from(Integer value) {
        for (DocumentsType documentsType : DocumentsType.values()) {
            if (documentsType.value.equals(value)) {
                return documentsType;
            }
        }
        return null;
    }

    public Integer value() {
        return this.value;
    }

    @Override
    public String toString() {
        return description;
    }
}
